﻿package com.tudou.ad.track
{
    import com.tudou.cookie.*;

    public class TudouAdPlay extends Object
    {
        private static const AD_PLAY_KEY:String = "TudouADPlay";
        private static var cookie:ICookie = new Cookie(NAME);
        private static const NAME:String = "Tudou_Homer";

        public function TudouAdPlay()
        {
            return;
        }// end function

        public static function getValue() : String
        {
            var _loc_1:String = null;
            var _loc_2:* = cookie.getValue(AD_PLAY_KEY);
            if (_loc_2 == null)
            {
                _loc_1 = "";
            }
            else
            {
                _loc_1 = _loc_2.toString();
            }
            return _loc_1;
        }// end function

        public static function setValue(param1:String) : void
        {
            cookie.setValue(AD_PLAY_KEY, param1);
            return;
        }// end function

    }
}
